import Vue from 'vue'
import element from './index.vue'

export function message(config) {
    const ctor = Vue.extend(element)
    const creaetEl = new ctor({
        propsData: {
            message: config.message,
            type: config.type,
            place: config.place
        }
    }).$mount(document.createElement('div'))
}